{
    var AliPay_1 = /** @class */ (function () {
        function AliPay() {
        }
        AliPay.prototype.handle = function (price) {
            console.log("\u652F\u4ED8\u5B9D\u652F\u4ED8".concat(price, "\u5143"));
        };
        return AliPay;
    }());
    var WeiPay_1 = /** @class */ (function () {
        function WeiPay() {
        }
        WeiPay.prototype.handle = function (price) {
            console.log("\u5FAE\u4FE1\u652F\u4ED8".concat(price, "\u5143"));
        };
        return WeiPay;
    }());
    function payfun(type, price) {
        var pay;
        switch (type) {
            case "alipay":
                pay = new AliPay_1();
                break;
            case "weipay":
                pay = new WeiPay_1();
                break;
            default:
                break;
        }
        pay.handle(price);
    }
}
